home *** CD-ROM | disk | FTP | other *** search
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
-
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
-
-
- #include "stdafx.h"
- #include "joystick.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CJoystick
-
- IMPLEMENT_DYNCREATE(CJoystick, CWnd)
-
- /////////////////////////////////////////////////////////////////////////////
- // CJoystick properties
-
- float CJoystick::GetXCenter()
- {
- float result;
- GetProperty(0x1, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetXCenter(float propVal)
- {
- SetProperty(0x1, VT_R4, propVal);
- }
-
- float CJoystick::GetXMax()
- {
- float result;
- GetProperty(0x2, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetXMax(float propVal)
- {
- SetProperty(0x2, VT_R4, propVal);
- }
-
- float CJoystick::GetXMin()
- {
- float result;
- GetProperty(0x3, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetXMin(float propVal)
- {
- SetProperty(0x3, VT_R4, propVal);
- }
-
- float CJoystick::GetXWeight()
- {
- float result;
- GetProperty(0x4, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetXWeight(float propVal)
- {
- SetProperty(0x4, VT_R4, propVal);
- }
-
- long CJoystick::GetXDeadzone()
- {
- long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetXDeadzone(long propVal)
- {
- SetProperty(0x5, VT_I4, propVal);
- }
-
- float CJoystick::GetXPos()
- {
- float result;
- GetProperty(0x6, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetXPos(float propVal)
- {
- SetProperty(0x6, VT_R4, propVal);
- }
-
- CString CJoystick::GetProductName()
- {
- CString result;
- GetProperty(0x7, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CJoystick::SetProductName(LPCTSTR propVal)
- {
- SetProperty(0x7, VT_BSTR, propVal);
- }
-
- CString CJoystick::GetDriver()
- {
- CString result;
- GetProperty(0x8, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CJoystick::SetDriver(LPCTSTR propVal)
- {
- SetProperty(0x8, VT_BSTR, propVal);
- }
-
- float CJoystick::GetYPos()
- {
- float result;
- GetProperty(0x9, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetYPos(float propVal)
- {
- SetProperty(0x9, VT_R4, propVal);
- }
-
- float CJoystick::GetYCenter()
- {
- float result;
- GetProperty(0xa, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetYCenter(float propVal)
- {
- SetProperty(0xa, VT_R4, propVal);
- }
-
- float CJoystick::GetYMax()
- {
- float result;
- GetProperty(0xb, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetYMax(float propVal)
- {
- SetProperty(0xb, VT_R4, propVal);
- }
-
- float CJoystick::GetYMin()
- {
- float result;
- GetProperty(0xc, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetYMin(float propVal)
- {
- SetProperty(0xc, VT_R4, propVal);
- }
-
- long CJoystick::GetYDeadzone()
- {
- long result;
- GetProperty(0xd, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetYDeadzone(long propVal)
- {
- SetProperty(0xd, VT_I4, propVal);
- }
-
- float CJoystick::GetYWeight()
- {
- float result;
- GetProperty(0xe, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetYWeight(float propVal)
- {
- SetProperty(0xe, VT_R4, propVal);
- }
-
- float CJoystick::GetZPos()
- {
- float result;
- GetProperty(0xf, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetZPos(float propVal)
- {
- SetProperty(0xf, VT_R4, propVal);
- }
-
- float CJoystick::GetZCenter()
- {
- float result;
- GetProperty(0x10, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetZCenter(float propVal)
- {
- SetProperty(0x10, VT_R4, propVal);
- }
-
- float CJoystick::GetZMax()
- {
- float result;
- GetProperty(0x11, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetZMax(float propVal)
- {
- SetProperty(0x11, VT_R4, propVal);
- }
-
- float CJoystick::GetZMin()
- {
- float result;
- GetProperty(0x12, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetZMin(float propVal)
- {
- SetProperty(0x12, VT_R4, propVal);
- }
-
- float CJoystick::GetZWeight()
- {
- float result;
- GetProperty(0x13, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetZWeight(float propVal)
- {
- SetProperty(0x13, VT_R4, propVal);
- }
-
- long CJoystick::GetZDeadzone()
- {
- long result;
- GetProperty(0x14, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetZDeadzone(long propVal)
- {
- SetProperty(0x14, VT_I4, propVal);
- }
-
- float CJoystick::GetRPos()
- {
- float result;
- GetProperty(0x15, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetRPos(float propVal)
- {
- SetProperty(0x15, VT_R4, propVal);
- }
-
- float CJoystick::GetRCenter()
- {
- float result;
- GetProperty(0x16, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetRCenter(float propVal)
- {
- SetProperty(0x16, VT_R4, propVal);
- }
-
- float CJoystick::GetRMax()
- {
- float result;
- GetProperty(0x17, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetRMax(float propVal)
- {
- SetProperty(0x17, VT_R4, propVal);
- }
-
- float CJoystick::GetRMin()
- {
- float result;
- GetProperty(0x18, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetRMin(float propVal)
- {
- SetProperty(0x18, VT_R4, propVal);
- }
-
- long CJoystick::GetRDeadzone()
- {
- long result;
- GetProperty(0x19, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetRDeadzone(long propVal)
- {
- SetProperty(0x19, VT_I4, propVal);
- }
-
- float CJoystick::GetRWeight()
- {
- float result;
- GetProperty(0x1a, VT_R4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetRWeight(float propVal)
- {
- SetProperty(0x1a, VT_R4, propVal);
- }
-
- long CJoystick::GetMaxAxes()
- {
- long result;
- GetProperty(0x1b, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetMaxAxes(long propVal)
- {
- SetProperty(0x1b, VT_I4, propVal);
- }
-
- long CJoystick::GetMaxButtons()
- {
- long result;
- GetProperty(0x1c, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetMaxButtons(long propVal)
- {
- SetProperty(0x1c, VT_I4, propVal);
- }
-
- long CJoystick::GetNumAxes()
- {
- long result;
- GetProperty(0x1d, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetNumAxes(long propVal)
- {
- SetProperty(0x1d, VT_I4, propVal);
- }
-
- long CJoystick::GetNumButtons()
- {
- long result;
- GetProperty(0x1e, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetNumButtons(long propVal)
- {
- SetProperty(0x1e, VT_I4, propVal);
- }
-
- long CJoystick::GetButton()
- {
- long result;
- GetProperty(0x1f, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetButton(long propVal)
- {
- SetProperty(0x1f, VT_I4, propVal);
- }
-
- long CJoystick::GetPov()
- {
- long result;
- GetProperty(0x20, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetPov(long propVal)
- {
- SetProperty(0x20, VT_I4, propVal);
- }
-
- long CJoystick::GetThreshold()
- {
- long result;
- GetProperty(0x21, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetThreshold(long propVal)
- {
- SetProperty(0x21, VT_I4, propVal);
- }
-
- long CJoystick::GetJoystickid()
- {
- long result;
- GetProperty(0x22, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetJoystickid(long propVal)
- {
- SetProperty(0x22, VT_I4, propVal);
- }
-
- CString CJoystick::GetJoystickError()
- {
- CString result;
- GetProperty(0x23, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CJoystick::SetJoystickError(LPCTSTR propVal)
- {
- SetProperty(0x23, VT_BSTR, propVal);
- }
-
- long CJoystick::GetDisplayMode()
- {
- long result;
- GetProperty(0x24, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetDisplayMode(long propVal)
- {
- SetProperty(0x24, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetStickBaseColor()
- {
- unsigned long result;
- GetProperty(0x25, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetStickBaseColor(unsigned long propVal)
- {
- SetProperty(0x25, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetButtonUpColor()
- {
- unsigned long result;
- GetProperty(0x26, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetButtonUpColor(unsigned long propVal)
- {
- SetProperty(0x26, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetButtonDownColor()
- {
- unsigned long result;
- GetProperty(0x27, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetButtonDownColor(unsigned long propVal)
- {
- SetProperty(0x27, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetStickColor()
- {
- unsigned long result;
- GetProperty(0x28, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetStickColor(unsigned long propVal)
- {
- SetProperty(0x28, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetTopColor()
- {
- unsigned long result;
- GetProperty(0x29, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetTopColor(unsigned long propVal)
- {
- SetProperty(0x29, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetPOVColor()
- {
- unsigned long result;
- GetProperty(0x2a, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetPOVColor(unsigned long propVal)
- {
- SetProperty(0x2a, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetPOVSetColor()
- {
- unsigned long result;
- GetProperty(0x2b, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetPOVSetColor(unsigned long propVal)
- {
- SetProperty(0x2b, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetThrottleColor()
- {
- unsigned long result;
- GetProperty(0x2c, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetThrottleColor(unsigned long propVal)
- {
- SetProperty(0x2c, VT_I4, propVal);
- }
-
- unsigned long CJoystick::GetThrottleKnobColor()
- {
- unsigned long result;
- GetProperty(0x2d, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetThrottleKnobColor(unsigned long propVal)
- {
- SetProperty(0x2d, VT_I4, propVal);
- }
-
- short CJoystick::GetStickWidth()
- {
- short result;
- GetProperty(0x2e, VT_I2, (void*)&result);
- return result;
- }
-
- void CJoystick::SetStickWidth(short propVal)
- {
- SetProperty(0x2e, VT_I2, propVal);
- }
-
- short CJoystick::GetStickTopWidth()
- {
- short result;
- GetProperty(0x2f, VT_I2, (void*)&result);
- return result;
- }
-
- void CJoystick::SetStickTopWidth(short propVal)
- {
- SetProperty(0x2f, VT_I2, propVal);
- }
-
- BOOL CJoystick::GetStickVisible()
- {
- BOOL result;
- GetProperty(0x30, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CJoystick::SetStickVisible(BOOL propVal)
- {
- SetProperty(0x30, VT_BOOL, propVal);
- }
-
- BOOL CJoystick::GetThrottleVisible()
- {
- BOOL result;
- GetProperty(0x31, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CJoystick::SetThrottleVisible(BOOL propVal)
- {
- SetProperty(0x31, VT_BOOL, propVal);
- }
-
- BOOL CJoystick::GetButtonsVisible()
- {
- BOOL result;
- GetProperty(0x32, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CJoystick::SetButtonsVisible(BOOL propVal)
- {
- SetProperty(0x32, VT_BOOL, propVal);
- }
-
- BOOL CJoystick::GetPOVVisible()
- {
- BOOL result;
- GetProperty(0x33, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CJoystick::SetPOVVisible(BOOL propVal)
- {
- SetProperty(0x33, VT_BOOL, propVal);
- }
-
- BOOL CJoystick::GetAutoRelease()
- {
- BOOL result;
- GetProperty(0x34, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CJoystick::SetAutoRelease(BOOL propVal)
- {
- SetProperty(0x34, VT_BOOL, propVal);
- }
-
- OLE_COLOR CJoystick::GetBackColor()
- {
- OLE_COLOR result;
- GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
- return result;
- }
-
- void CJoystick::SetBackColor(OLE_COLOR propVal)
- {
- SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CJoystick operations
-
- void CJoystick::Release()
- {
- InvokeHelper(0x35, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CJoystick::Center(short flag)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x36, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- flag);
- }
-
- void CJoystick::CenterAll()
- {
- InvokeHelper(0x37, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CJoystick::ShowPropertyPage()
- {
- InvokeHelper(0x38, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CJoystick::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-